package jps.result;

import java.util.LinkedList;
import java.util.List;

import edu.pjwstk.jps.result.ISequenceResult;
import edu.pjwstk.jps.result.ISingleResult;

public class SequenceResult extends CollectionResult implements ISequenceResult {
	private List<ISingleResult> list = new LinkedList<ISingleResult>();
	
	public SequenceResult(ISingleResult... list) {
		super();
		for(ISingleResult i: list){
            this.list.add(i);}
	}
	public SequenceResult(List<ISingleResult> list) {
		super();
		for(ISingleResult i: list){
            this.list.add(i);}
	}


	@Override
	public String toString() {
		return "SequenceResult [" + list + "]";
	}


	@Override
	public List<ISingleResult> getElements() {
		// TODO Auto-generated method stub
		return list;
	}

}
